﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity
{
    /// <summary>
    /// 服务奖励时间标记
    /// </summary>
    [Table(Name = "service_return_day_flag")]
    public class ServiceReturnDayFlag : Entity
    {
        /// <summary>
        ///自增ID
        /// </summary>
       // [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false)]
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }


        /// <summary>
        /// 返点时间
        /// </summary>
        [Column(Name = "jesuan_time")]
        public DateTime jesuan_time { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [Column(Name = "addtime")]
        public DateTime addtime { get; set; }

        /// <summary>
        /// 当天总贡献值
        /// </summary>
        [Column(Name = "shouru")]
        public Decimal shouru { get; set; }

        /// <summary>
        /// 分配共建值部分（贡献值）
        /// </summary>
        [Column(Name = "returnmoney")]
        public Decimal returnmoney { get; set; }

        /// <summary>
        /// 实际到用户手中的锁仓共建值
        /// </summary>
        [Column(Name = "daozhang")]
        public Decimal daozhang { get; set; }

          /// <summary>
        /// 当天共建值赠送量
        /// </summary>
        [Column(Name = "zengsongzc")]
        public Decimal zengsongzc { get; set; }

        /// <summary>
        /// 分配奖励部分（日奖励）
        /// </summary>
        [Column(Name = "returnJiangli")]
        public Decimal returnJiangli { get; set; }

        /// <summary>
        /// 类别：0日奖励；1：月奖励；2：返还红包；3：达到条件释放；4：优秀服务网点每天获得8%贡献值(绑定用户锁仓共建值释放到可用共建值时)
        /// </summary>
        [Column(Name = "type")]
        public int type { get; set; }
    }
}
